import java.util.Scanner;
public class test7_if语句3 {
    public static void main(String[] args) {
        /*输入商品的总价和会员级别,并计算出实际支付的钱.
         * 会员1级:打9折.
         * 会员2级:打8折.
         * 会员3级:打7折.
         * 非会员:不打折,要打也是打骨折.
         */
        Scanner input  = new Scanner (System.in);
        System.out.print("商品总价为:");
        int allprice = input.nextInt();
        System.out.print("是会员吗?");
        String a = input.next();
        if (a == "是") {
            System.out.print("会员级别为:");
            int level = input.nextInt();
            double price = (10 - (double) level) / 10 * allprice;
            System.out.println("你需要支付" + price + "元");
        } if (a == "否") {
            System.out.println("你需要支付" + allprice + "元");
        } if (a != "是" && a != "否") {
            System.out.println("请好好说话");
        }
        input.close();
    }
}
